import request from '@/utils/request'

// 封装楼宇表格页面数据接口
export const getBuilListApi = (params) => {
  return request.get('/park/building', { params })
}
// 封装新增楼宇接口
export const updateBulApi = (data) => {
  // return request.post('/park/building', data)
  return request({
    url: '/park/building',
    method: 'post',
    data: {
      name: data.name,
      floors: data.floors,
      area: data.area,
      propertyFeePrice: data.propertyFeePrice
    }
  })
}
// 封装修改楼宇接口
export const getChangeApi = (data) => {
  return request.put('/park/building', data)
}
// 封装修改表单回填数据接口
export const showChangeApi = (id) => {
  return request.get(`park/building/${id}`)
}

// 封装删除接口
export const delBulApi = (id) => {
  return request.delete(`park/building/${id}`)
}

